package com.liangzai.controller;

import com.liangzai.context.PayContextStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author leiliang
 * @version 1.0
 * @Description
 * @date 2021/3/11 16:20
 */
@RestController
public class PayController {

    @Autowired
    PayContextStrategy payContextStrategy;

    @RequestMapping("/pay")
    public String toPayHtml(String payCode){
       return payContextStrategy.toPayHtml(payCode);
    }
}
